<?php

namespace forfun\repository\entity;

class User {
    /**
     * @var int id.
     * @primary
     */
    private $_id;
    private $_nickname;
    private $_pwd;

    /**
     * @var string create time.
     * @alias ("create_time")
     */
    private $_createTime;
    /**
     * @var string register ip.
     * @alias("register_ip")
     */
    private $_registerIp;

    /**
     * @var string login token.
     * @alias("login_token")
     */
    private $_loginToken;

    /**
     * @var string device code.
     * @alias("device_code")
     */
    private $_deviceCode;

    public function getId()
    {
        return $this->_id;
    }

    public function setId($id)
    {
        $this->_id = $id;
    }

    /**
     * @return mixed
     */
    public function getNickname()
    {
        return $this->_nickname;
    }

    /**
     * @param mixed $nickname
     */
    public function setNickname($nickname)
    {
        $this->_nickname = $nickname;
    }

    /**
     * @return mixed
     */
    public function getPwd()
    {
        return $this->_pwd;
    }

    /**
     * @param mixed $pwd
     */
    public function setPwd($pwd)
    {
        $this->_pwd = $pwd;
    }

    public function getCreateTime()
    {
        return $this->_createTime;
    }

    public function setCreateTime($createTime)
    {
        $this->_createTime = $createTime;
    }

    public function getRegisterIp()
    {
        return $this->_registerIp;
    }

    public function setRegisterIp($registerIp)
    {
        $this->_registerIp = $registerIp;
    }

    public function getLoginToken()
    {
        return $this->_loginToken;
    }

    public function setLoginToken($loginToken)
    {
        $this->_loginToken = $loginToken;
    }

    public function getDeviceCode()
    {
        return $this->_deviceCode;
    }

    public function setDeviceCode($deviceCode)
    {
        $this->_deviceCode = $deviceCode;
    }


}